package de.gameduell.framework.util {
	import flash.display.Stage;

	public class SingleSyncTimer extends SyncTimer {

		public static var stage:Stage = null; 
		private static var INSTANCE:SingleSyncTimer = null;

		/**
		 * 
		 */
		public static function getInstance():SingleSyncTimer {
			if(INSTANCE == null) {
				INSTANCE = new SingleSyncTimer(new Single());
			}
			return INSTANCE;
		}

		/**
		 * 
		 */
		public function SingleSyncTimer( single:Single ) {
			single;
			if(stage != null) {
				super(stage);
			}
			else {
				throw(new Error("stage ins't initialized in SingleSyncTimer"));
			}
			
		}
	}
}

internal class Single {}